package com.flyco.modules.stm.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: SKU与物料关联表
 * @Author: flyco
 * @Date:   2020-11-18
 * @Version: V1.0
 */
@Data
@TableName("stm_sku_material")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="stm_sku_material对象", description="SKU与物料关联表")
public class StmSkuMaterial {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;

	@ApiModelProperty(value = "商家id")
	private Long partnerId;

	/**商品id*/
    @ApiModelProperty(value = "商品id")
	private Long productId;
	/**商品货号*/
	@Excel(name = "型号", width = 15)
    @ApiModelProperty(value = "型号")
	private String productSn;
	/**sku编码*/
    @ApiModelProperty(value = "SKU编码")
	private String skuCode;
	/**物料编码*/
	@Excel(name = "物料号", width = 15)
    @ApiModelProperty(value = "物料号")
	private String materialCode;
	/**物料名称*/
	@Excel(name = "物料名称", width = 15)
	@ApiModelProperty(value = "物料名称")
	private String materialName;
	/**成本价*/
	@Excel(name = "厂供价", width = 15)
    @ApiModelProperty(value = "厂供价")
	private java.math.BigDecimal costPrice;
	/**startTime*/
	@Excel(name = "开始启用时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date startTime;
	/**删除标记*/
    @ApiModelProperty(value = "删除标记")
	@TableLogic
	private Integer delFlag;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
